package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2021/12/30 14:38
 */
@Controller
public class HelloController {

    //注解的属性值为数组，如果数组中只有一个值，可以省略掉{}
    @RequestMapping({"hello", "helloworld"})
    @ResponseBody
    public String hello() {
        return "hello world 2.0";
    }
}
